# -*- coding: utf-8 -*-
import os
from liberLibs import utils


def conf_path(conf):
    path = os.path.abspath(os.path.join(__file__, "..", "..", "liberConf/%s" % conf))
    path = path.replace("\\", "/")
    return path


def library_conf_data():
    path = conf_path("library.yml")
    data = utils.read_yaml(path)
    return data
